package cn.iocoder.yudao.module.wms.controller.admin.doc.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 仓储单据 Response VO")
@Data
@ExcelIgnoreUnannotated
public class DocRespVO {

    @Schema(description = "序号", requiredMode = Schema.RequiredMode.REQUIRED, example = "6182")
    @ExcelProperty("序号")
    private Long id;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @ExcelProperty("名称")
    private String name;

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("编号")
    private String code;

    @Schema(description = "单据类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty(value = "单据类型", converter = DictConvert.class)
    @DictFormat("doc_wms") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String docType;

    @Schema(description = "编码前缀", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("编码前缀")
    private String docNoPrefix;

    @Schema(description = "编码类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "编码类型", converter = DictConvert.class)
    @DictFormat("doc_no_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer docNoType;

    @Schema(description = "流水号位数", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("流水号位数")
    private Integer docNoLength;

    @Schema(description = "交易类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "交易类型", converter = DictConvert.class)
    @DictFormat("wms_transaction_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer transactionType;

    @Schema(description = "控制超入", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "控制超入", converter = DictConvert.class)
    @DictFormat("common_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer controlAcceptOevr;

    @Schema(description = "控制缺入", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "控制缺入", converter = DictConvert.class)
    @DictFormat("common_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer controlAcceptShort;

    @Schema(description = "控制超领", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "控制超领", converter = DictConvert.class)
    @DictFormat("common_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer controlIssueOevr;

    @Schema(description = "控制缺领", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "控制缺领", converter = DictConvert.class)
    @DictFormat("common_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer controlIssueShort;

    @Schema(description = "自动审核", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "自动审核", converter = DictConvert.class)
    @DictFormat("common_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer autoApprove;

    @Schema(description = "打印模板", example = "14888")
    @ExcelProperty("打印模板")
    private Long printId;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat("common_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

    @Schema(description = "显示顺序", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("显示顺序")
    private Integer sort;

    @Schema(description = "备注", example = "你猜")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "乐观锁", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("乐观锁")
    private Long revision;

}